home *** CD-ROM | disk | FTP | other *** search
- Path: keats.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.c
- Subject: Re: Fractals
- Date: 6 Mar 1996 01:34:17 -0800
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Message-ID: <4hjm6pINN44r@keats.ugrad.cs.ubc.ca>
- References: <4hhv43$49i@sunburst.ccs.yorku.ca> <4hibr0INN7s1@gambier.ugrad.cs.ubc.ca> <313D1AF1.4A22@hsc.unt.edu>
- NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
-
- In article <313D1AF1.4A22@hsc.unt.edu>,
- Steve Fogoros <sfogoros@hsc.unt.edu> wrote:
- >Kazimir Kylheku wrote:
- >>
- >> In article <4hhv43$49i@sunburst.ccs.yorku.ca>,
- >> Naftali Sturm <yu114405@yorku.ca> wrote:
- >> >How do you program fractals in C?
- >>
- >> You define a data type that can hold complex numbers. You can make it an
- >> abstract data type if you wish.
- >>
- >> Then you define some basic operations: complex multiplication, addition,
- >> norm and so forth.
- >>
- >> Then you compute the fractal using whatever iterative formula you wish, such as
- >>
- >> z = z^2 + C
- >
- >When you used the ^ symbol, did you intend to indicate 2 as an exponent of z or bitwise exclusive or?
-
- Exponent, sorry. That was not intended to be a C statement. (And in fact it
- could not be, since C does not let you overload operators to support a complex
- type that way).
-
- By the way, what would be the meaning of doing an XOR between a floating point
- complex number and 2?
- --
-
-